package com.test.date;

import java.time.LocalDate;
import java.time.temporal.ChronoUnit;

public class DaysBetweenDateTime {
    public static void main(String[] args) {
        final LocalDate now = LocalDate.now();
        final LocalDate tomorrow = now.plusDays(1);
        System.out.println(ChronoUnit.DAYS.between(now, tomorrow));
        System.out.println(ChronoUnit.DAYS.between(tomorrow, now));
    }
}
